$OpenBSD: patch-agent_mibgroup_mibII_tcpTable_c,v 1.9 2014/12/09 15:20:06 sthen Exp $
--- agent/mibgroup/mibII/tcpTable.c.orig	Tue Feb 25 20:50:16 2014
+++ agent/mibgroup/mibII/tcpTable.c	Thu Mar 20 12:41:29 2014
@@ -974,7 +974,7 @@ tcpTable_load(netsnmp_cache *cache, void *vmagic)
     /*
      *  Set up a linked list
      */
-    entry  = table.inpt_queue.cqh_first;
+    entry  = TAILQ_FIRST(&table.inpt_queue);
     while (entry) {
    
         nnew = SNMP_MALLOC_TYPEDEF(netsnmp_inpcb);
@@ -998,7 +998,7 @@ tcpTable_load(netsnmp_cache *cache, void *vmagic)
 	nnew->inp_next = tcp_head;
 	tcp_head   = nnew;
 
-        if (entry == table.inpt_queue.cqh_first)
+        if (entry == TAILQ_FIRST(&table.inpt_queue))
             break;
     }
 
